import { BASE_URL, TIME_OUT } from "./config";
import HYRequest from "./request";

const hyRequest = new HYRequest({
  baseURL: BASE_URL,
  timeout: TIME_OUT,
  interceptors: {
    RequestSuccessFn: (config) => {
      return config;
    },
    RequsetFailureFn: (error) => {
      return error;
    },
    ResponseSuccessFn: (res) => {
      return res;
    },
    ResponseFailureFn: (error) => {
      return error;
    },
  },
});
export default hyRequest;
